package xmlParser;

public class Node implements Comparable {
	private String myId;
	private double myX;
	private double myY;
	private double myVx;
	private double myVy;
	
	public Node(String id, double x, double y, double vx, double vy) {
		this.myId = id;
		this.myX = x;
		this.myY = y;
		this.myVx = vx;
		this.myVy = vy;
	}
	
	public Node(String id) {
		this.myId = id;
	}
	
	public int compareTo(Object o) {
		return this.myId.compareTo(((Node)o).myId);
	}
	
	public String toString() {
		return "String "+myId;
	}
}
